<?php
/**
 * template name: Forgot Password
 * description: get password when user forget it

 * @author Tham
 */
get_header();
if (isset($_REQUEST['bt_forgot'])) {

    //$user_name = $_REQUEST['txt_name'];
    $email = $_REQUEST['txt_email'];
    $thongbao = User::CheckUserByEmail($email);
   
    ?>
  <div class="modal fade" id="forgetpass-info" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
            <div class="modal-dialog">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="myModalLabel">Success</h4>
                    </div>
                    <div class="modal-body">
                        <?php
                        echo $thongbao;
                        ?>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                    </div>
                </div>
            </div>
        </div>
<?php
}
?>
<div class="content">
    <div class="container">
        <div class="box-main">
            <div class="row">
                <div class="col-md-9">
                    <div class="tab">
                        <a href="<?php echo get_site_url(); ?>">Home / </a> <?php echo $post->post_title ?> </div>
                    <h2><?php echo $post->post_title ?> </h2>
                    <br/>
                    <div class="text-content border-radius">
                        <?php /* .Noi dung trang Login . */ ?>


                        <form  method="post" class="frm_register" >   
                            <br/>
                            <p> <label class="float_left" >Email </label>
                                <input class="float_left" type="text"  value="<?php
                        ?>" id="txt_email" name="txt_email" /><br clear="all"/>
                            <p id="error_email" class="error_info"  ></p></p>
                            <p class="clear">
                            <p style="float:right; margin-right:13px;">
                                <br/>
                                <button type="submit" name="bt_forgot" onclick="return check_fogetpass();"  id="bt_forgot"  class="button">
                                    Forgot Password
                                </button>
                            </p>   
                        </form>

                    </div>
                </div>
                <?php
                include_once 'right_single.php';
                ?>
            </div>
        </div>
    </div>

</div>
<?php get_footer(); ?>

<script type="text/javascript" language="javascript" src="<?php bloginfo('template_directory') ?>/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" language="javascript" src="<?php bloginfo('template_directory') ?>/js/bootstrap.js"></script>
<script type="text/javascript">

                                    $(document).ready(function() {
                                        $("#forgetpass-info").modal();
                                    });
</script>